home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 December
/
PCWorld_2005-12_cd.bin
/
software
/
vyzkuste
/
pspad
/
pspad433inst_cz.exe
/
{app}
/
Context
/
WML.DEF
< prev
next >
Wrap
Text File
|
2004-05-07
|
11KB
|
419 lines
;; PSPad code template for WML (Wireless Markup Language)
;; Author: Karel Pavelka
;; E-mail: webjob@seznam.cz
;; Update: 28.4.2004
;;
;; (black) WML 1.2
;; B (blue)
;; D (dark gray)
;; F (fuchsia)
;; G (green) Entity, zavorky, komentare
;; M (maroon)
;; N (navy) Kusy kodu
;; P (purple) PHP
;; R (red) WTAI (Wireless Telephony Application Interface) funkce
;;
;; Odsazeni: 2
;
;
[Macro definition]
;
%phonenumber%=@C Phone Number:,,,"
;
%acceptcharset%=@C accept-charset=,accept-charset=,,windows-1250;iso-8859-2;utf-8,"
%accesskey%=@C accesskey=,accesskey=,,0;1;2;3;4;5;6;7;8;9,"
%align3%=@C align=,align=,,center;left;right,"
%aligni%=@C align=,align=,,bottom;middle;top,"
%alt%=@E alt=,alt=,,,"
%columns%=@E columns=,columns=,,,"
%content%=@C content=,content=,,no-cache;must-revalidate;max-age=,"
%domain%=@E domain=,domain=,,,"
%emptyok%=@C emptyok=,emptyok=,,true;false,"
%encoding%=@C encoding=,encoding=,,windows-1250;iso-8859-2;utf-8,"
%format%=@C format=,format=,,A;a;N;X;x;M;m,"
%forua%=@C forua=,forua=,,true;false,"
%height%=@E height=,height=,,,"
%href%=@O WML href=,href=,,wml file (*.wml;*.php;*.php3)|*.wml;*.php;*.php3,"
%hspace%=@E hspace=,hspace=,,,"
%id%=@E id=,id=,,,"
%iname%=@E iname=,iname=,,,"
%ivalue%=@E ivalue=,ivalue=,,,"
%label%=@E label=,label=,,,"
%lang%=@C xml:lang=,xml:lang=,,cs;sk;de;en;hu,"
%maxlength%=@E maxlength=,maxlength=,,,"
%method%=@C method=,method=,,get;post,"
%mode%=@C mode=,mode=,,wrap;nowrap,"
%multiple%=@C multiple=,multiple=,,true;false,"
%name%=@E name=,name=,,,"
%namem%=@C name=,name=,,vnd.up.markable;vnd.up.bookmark,"
%newcontext%=@C newcontext=,newcontext=,,true;false,"
%onenterbackward%=@E onenterbackward=,onenterbackward=,,,"
%onenterforward%=@E onenterforward=,onenterforward=,,,"
%onexit%=@E onexit=,onexit=,,,"
%onpick%=@E onpick=,onpick=,,,"
%onthrow%=@E onthrow=,onthrow=,,,"
%ontimer%=@E ontimer=,ontimer=,,,"
%optional%=@C optional=,optional=,,true;false,"
%ordered%=@C ordered=,ordered=,,true;false,"
%path%=@C path=,path=,,/,"
%sendreferer%=@C sendreferer=,sendreferer=,,true;false,"
%scheme%=@E scheme=,scheme=,,,"
%size%=@E size=,size=,,,"
%srcw%=@O src=,src=,,Image file (*.wbmp)|*.wbmp,"
%tabindex%=@E tabindex=,tabindex=,,,"
%title%=@E title=,title=,,,"
%typeo%=@C type=,type=,,onpick;onenterforward;onenterbakward;ontimer,"
%typedo%=@C type=,type=,,accept;delete;help;options;prev;reset;unknown;vnd.co-type;x-*,"
%type%=@C type=,type=,,password;text,"
%version%=@C version=,version=,,"1.0","
%volume%=@E volume=,volume=,,,"
%vspace%=@E vspace=,vspace=,,,"
%width%=@E width=,width=,,,"
;
[ |G ned∞litelnß mezera]*Shift+Ctrl+Space
[' |G apostrof]
'
[> |G znak ">"]
>
[< |G znak "<"]
<
[& |G ampersand]
&
[<...> |G zaΦßtek/konec tagu z oznaΦenΘho textu]*Ctrl+,
<º>|</º>
[<> |G zaΦßtek tagu <>]*Alt+,
<|>
[</> |G konec tagu </|>]*Alt+.
</|>
;
[!-- |G °ßdkov² komentß° <!-- text -->]
<!-- º| -->
[!--- |G komentß° bloku <!-- text -->]
<!--
º|
-->
;
;
[a | odkaz]
<a %href% %title% %lang% %accesskey%>º|</a>
;
[access | specifikuje informace o kontrole p°φstupu na WML desku]
<access %domain% %path%/>
|
;
[anchor | ukotvuje ·lohu na °et∞zec formßtovanΘho textu]
<anchor %accesskey% %title% %lang%>º|</anchor>
;
[b | tuΦn² text]*CTRL+B
<b>º|</b>
;
[big | zv∞tÜenφ pφsma]
<big>º|</big>
;
[br | zalomenφ °ßdku]*CTRL+ENTER
<br/>
;
[card | spcifikuje jednoduchou interakci mezi u₧ivatlem a za°φzenφm]
<card %id% %title% %ontimer% %onenterforward% %onenterbackward% %ordered% %newcontext%>
º|
</card>
;
[catch | specifikuje zachytßvaΦ v²jimek, kter² m∙₧e provßd∞t vyjφmku vzniklou p°i provßd∞nφ ·lohy]
<catch %onthrow% %name%>
º|
</catch>
;
[do | asociuje ·lohu s elementem uvnit° u₧ivatelskΘho rozhranφ]
<do %typedo% %label% %lang% %name% %optional%>º|</do>
;
[em | zv²razn∞nφ ]
<em>º|</em>
;
[exit | deklaruje ·lohu p°i odchodu, indikuje ₧e aktußlnφ obsah musφ b²t ukonΦen]
<exit>
º|
</exit>
;
[fieldset | dovoluje seskupit mnohonßsobn² text nebo vstupnφ polo₧ky uvnit° karty]
<fieldset %title% %lang%>
º|
</fieldset>
;
[go | udßlostnφ element, kter² instruuje za°φzenφ k otev°enφ specifikovanΘ URL adresy]
<go %href% %sendreferer% %method% %acceptcharset%>
º|
</go>
;
[head | specifikuje ·plnΘ informace o desce zahrnujφcφ metadata a informace pro kontrolu p°φstupu]
<head>
º|
</head>
;
[i | kurzφva]*CTRL+I
<i>º|</i>
;
[img | img]
<img %alt% %lang% %srcw% %src% %aligni% %height% %width% %vspace% %hspace%/>
|
;
[input | dovoluje u₧ivateli zadat vstupnφ text, kterΘmu za°φzenφ p°id∞luje prom∞nnou]
<input %lang% %name% %title% %type% %value% %accesskey% %format% %emptyok% %size% %maxlength% %tabindex%/>
|
;
[link | specifikuje vztah mezi obsahem desky a dalÜφho dokumentu. Tento dokument musφ existovat uvnit° elementu <head>]
<link %href% %rel% %sendreferer%/>
|
;
[meta | poskytuje meta informace o WML desce ]
<meta http-equiv="cache-control" %content% %forua% %namem% %scheme%/>
|
;
[noop | udßlostφ element, kter² instruuje za°φzenφ k neΦinnost, tj. "₧ßdnß akce"]
<noop/>
;
[optgroup | dovoluje seskupovat mnohonßsobn² v²skyt elementu <option> (nebo vno°en² element <optgroup>) uvnit° elementu <card>]
<optgroup %title% %lang%>
º|
</optgroup>
;
[onevent | asociuje p°echodn² stav nebo skuteΦnou udßlost s ·lohou. Kdy₧ skuteΦnß udßlost nastane, za°φzenφ provede asosiovanou ·lohu]
<onevent %typeo%>
º|
</onevent>
;
[option | specifikuje konkrΘtnφ volbu uvnit° elementu <select>]
<option %title% %value% %onpick% %lang%>
º|
</option>
;
[p | odstavec]*SHIFT+CTRL+P
<p %align3% %mode% %lang%>
º|
</p>
;
[postfield | definuje nßzev/hodnotovΘ pßry, kterΘ odpovφdajφ HTTP serveru, je₧ p°ijφmß po₧adavek elementu <go>]
<postfield %name% %value%/>
;
[prev | udßlostnφ element, kter² instruuje za°φzenφ pro vymazßnφ aktußlnφ adresa URL ze zßsobnφku historie a otev°e p°edchozφ URL adresu.]
<prev>|º</prev>
;
[receive | pro p°φjem dat posφlan²ch z kontextu potomka]
<receive %name%/>
|
;
[refresh | udßlostnφ element, kter² instruuje za°φzenφ pro znovunaΦtenφ specifikovan²ch prom∞nn²ch karty]
<refresh>
º|
</refresh>
;
[reset | vyma₧e vÜechny prom∞nnΘ v aktußlnφm kontextu ]
<reset/>
|
;
[select | specifikuje seznam voleb, ze kter²ch si m∙₧e u₧ivatel vybrat]
<select %title% %name% %lang% %value% %tabindex% %multiple% %iname% %ivalue%>
º|
</select>
;
[send | specifikuje jednoduchou hodnotu zahrnovanou do bloku parametr∙ ]
<send %value%/>
|
;
[setvar | nastavuje prom∞nnΘ na specifickΘ hodnoty, kdy₧ za°φzenφ spustφ n∞kterou z ·loh <g>,<prev>,<spawn> nebo <refresh> ]
<setvar %name% %value%/>
|
;
[small | zmenÜenß velikost textu]
<small>º|</small>
;
[spawn | deklaruje ·lohu t°enφ, kterß indikuje vytvo°enφ potomka kontextu a z n∞j volanou adresu]
<spawn %href% %onexit% %sendreferer% %method% %acceptcharset%>
º|
</spawn>
;
[strong | siln∞ zv²razn∞n² text]
<strong>º|</strong>
;
[table | tabulka]
<table %lang% %align3% %title% %columns%>
º|
</table>
;
[TABLEj | jednoduchß tabulka]
<table %columns%>
<tr><td>º|</td></tr>
</table>
;
[td | bu≥ka tabulky]
<td>º|</td>
;
[template | definuje ·rove≥ vazby desky k udßlostem]
<template %ontimer% %onenterforward% %onenterbackward%>
º|
</template>
;
[throw | deklaruje ·lohu throw (hozenou) indikujφcφ, ₧e vyjφmka m∙₧e r∙st]
<throw %name%>
º|
</throw>
;
[timer | poskytuje metodu pro automatickΘ volßnφ ·lohy po n∞jakΘ ΦasovΘ period∞ u₧ivatelskΘ neΦinnosti]
<timer %name% %value%/>
|
;
[tr | °ßdek tabulky]
<tr>º|</tr>
;
[wml | vymezenφ desky WML dokumentu]
<wml %lang%>
º|
</wml>
;
[WMLs |N jednoduchß WML 1.2 strßnka ]
<?xml version="1.0" %encoding%?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">
<wml %lang%>
º|
</wml>
;
[xml |N hlaviΦka dokumentu WML 1.1]
<?xml version="1.0" %encoding%?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
;
[xml |N hlaviΦka dokumentu WML 1.2]
<?xml version="1.0" %encoding%?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">
;
[PHPindex |P WWW i WAP verze strßnek na jednΘ adrese]
<?php
$typ=strtoupper($HTTP_ACCEPT);
if (ereg("WML",$typ)) {
include("indexwap.php");
}
else {
include("indexhtml.php");
}
?>
;
[PHPh |P hlaviΦka v PHP]
<?php
header("Content-type: text/vnd.wap.wml");
echo("<?xml version=\"1.0\"?>\n");
echo("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n\n");
?>
[PHPdetekce |P detekce v PHP]
<wml>
<card id="detekt" title="Detekce">
<p>
<?php
// Φßst prvni - standardnφ HTTP hlaviΦka
$headers = getallheaders();
while (list($header, $value) = each($headers)) {
echo strtoupper($header).": ". $value."<br/>\n";
}
// druhß Φßst
echo("REMOTE_ADDR: ".$REMOTE_ADDR."<br/>\n"); // IP addresa klientskΘ strany
echo("REMOTE_PORT: ".$REMOTE_PORT."<br/>\n"); // Port pou₧ity z klientskΘ strany
echo("REMOTE_USER: ".$REMOTE_USER."<br/>\n"); // Jmeno autentifikovanΘho u₧ivatele, pokud byla autentifikace provedena
echo("GATEWAY_INTERFACE: ".$GATEWAY_INTERFACE."<br/>\n"); // typ interface brany
echo("SERVER_PROTOCOL: ".$SERVER_PROTOCOL."<br/>\n"); // Protokol pou₧it² serverem
echo("REQUEST_METHOD: ".$REQUEST_METHOD."<br/>\n"); // Request metoda
echo("HTTP_CONNECTION: ".$HTTP_CONNECTION."<br/>\n"); // Connection type
echo("HTTP_VIA: ".$HTTP_VIA."<br/>\n"); // Jak je host napojen (proxy)
?>
</p>
</card>
</wml>
[A_wtai: |R ]
<a href="wtai://wp/mc;%phonenumber%">º|</a>
;
[Keywords]
accept
accept-charset=
access
accesskey=
align=
alt=
anchor
br/>
card
catch
columns=
content=
DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
domain=
emptyok=
encoding=
exit
fieldset
format=
forua=
go
head
height=
href=
hspace=
iname=
ivalue=
label=
maxlength=
method=
mode=
multiple=
must-revalidate
newcontext=
no-cache
noop/>
nowrap
onenterbackward=
onenterbakward
onenterforward
onenterforward=
onevent
onexit=
onthrow=
ontimer
ontimer=
optgroup
option
optional=
ordered=
password
path=
postfield
receive
reset/>
select
send
sendreferer=
setvar
scheme=
size=
small>
spawn
strong>
tabindex=
table
td>
template
throw
timer
title=
tr>
type=
unknown
version=
vnd.wap.wml
volume=
vspace=
wbmp
width=
wml
xml version="1.0"
xml:lang=